//
//  SMProductDetailView.swift
//  SomePasti
//
//  Created by 李永彬 on 2025/10/17.
//

import SwiftUI

struct SMProductDetailView: View, TitledView  {
    var navigationTitle: String = "Product details"
    var body: some View {
        let navigationConfig = NavigationConfig(
            title: navigationTitle,
            showSystemBackButton: true
        )
        SMBaseContentView(navigationConfig: navigationConfig) {
            Button("push id view") {
                NotificationCenter.default.post(name: .checkAuthProgressNotification, object: nil)
            }
            .padding()
            .background(Color.orange)
            .foregroundColor(.white)
            .cornerRadius(8)
        }
        .setViewIdentifier(String(describing: SMProductDetailView.self))
    }
}

#Preview {
    SMProductDetailView()
}
